﻿
@{
    Layout = null;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>GHIndex</title>
    <script src="~/Scripts/jquery-1.10.2.js"></script>
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
    <script src="~/Scripts/GHIndex.js"></script>
<<<<<<< .mine
||||||| .r24
    <script>
        function Gh()
        {
            //获取文本框的值
            var Gh_Reason = $("#Gh_Reason").val();
            var U_Name = $("#U_Name").val();
            var txtHosp = $("#txtHosp").val();
            var txtOffice = $("#txtOffice").val();
            var txtDoctor = $("#txtDoctor").val();
            var Gh_Time = $("#Gh_Time").val();
            //调用ajax
            $.ajax({
                url: "//Default/Index",
                type: "post",
                data: { Gh_Reason: Gh_Reason, U_Name: U_Name, txtHosp: txtHosp, txtOffice: txtOffice, txtDoctor: txtDoctor, Gh_Time: Gh_Time },
                success:function(data)
                {
                    if(data>0)
                    {
                        alert("挂号成功");
                    }
                    else
                    {
                        alert("挂号失败");
                    }
                }

            })
        }
    </script>
=======
    <script>
        function Gh()
        {
            //获取文本框的值
            var Gh_Reason = $("#Gh_Reason").val();
            var U_Name = $("#U_Name").val();
            var txtHosp = $("#txtHosp").val();
            var txtOffice = $("#txtOffice").val();
            var txtDoctor = $("#txtDoctor").val();
            var Gh_Time = $("#Gh_Time").val();
            var GH_type = $("#txtGHTtype").val();
            //调用ajax
            $.ajax({
                url: "/Default/Index",
                type: "post",
                data: { Gh_Reason: Gh_Reason, U_Name: U_Name, txtHosp: txtHosp, txtOffice: txtOffice, txtDoctor: txtDoctor, Gh_Time: Gh_Time, GH_type: GH_type },
                success:function(data)
                {
                    if(data>0)
                    {
                        alert("挂号成功");
                    }
                    else
                    {
                        alert("挂号失败");
                    }
                }

            })
        }
        
    </script>
>>>>>>> .r30
</head>
<body>
    <div style="background-color:#e6e1e1;width:100%;height:946px">
        <p style="font-size:24px"><a href="#" style="text-decoration:none;">首页</a>>预约挂号</p>
        <div style="width:1000px ;height:500px;background-color:#e5e8ec;margin:0 auto">
            <div style="width:997px;height:500px;background-color:#fcfdfd;margin:0 auto;margin-top:20px">
                <div style="width:190px;height:500px;background-color:#f9fafa;border:1px solid #f7f7f7;float:left">
                    <p style="color:#98c832;font-size:24px;margin-left:10px;margin-top:8px">预约挂号</p>
                    <p style="font-size:9px;margin-left:5px;">帮助普通患者快速找到选定条件下可预约的专家（目前只支持部分医院）</p>
                    <hr />
                    <img src="~/image/挂号_05.gif" style="width:190px;height:130px;margin-top:5px" />
                    <p style="text-align:center;font-size:16px;margin-top:8px">手机挂号10秒搞定！</p>
                    <p style="text-align:center;font-size:8px">立即扫描下载天堂挂号APP<br />关注微信公众号，让看病变得更简单！</p>
                    <img src="~/image/挂号_01_09.gif" style="width:190px;height:80px;margin-top:5px" />
                    <p style="text-align:center;margin-top:10px">扫一扫，点关注</p>
                </div>
                <div style="width:748px;height:468px;float:left;padding-top:30px;padding-left:25px">
                    <table class="table table-striped" style="height:400px"> 
                        <tr>
                            <td>挂号原因</td>
                            <td><textarea id="Gh_Reason" style="width:217px; height:40px" class="form-control"></textarea></td>
                        </tr>
                        <tr>
                            <td>挂号人</td>
                            <td><input id="U_Name" type="text" class="form-control"/></td>
                        </tr>
                        <tr>
                            <td>医院</td>
                            <td><select id="txtHosp" class="form-control"></select></td>
                        </tr>
                        <tr>
                            <td>科室</td>
                            <td><select id="txtOffice" class="form-control"></select></td>
                        <tr>
                            <td>医生</td>
                            <td><select id="txtDoctor" class="form-control"></select></td>
                        </tr> 
                        <tr>
                            <td>挂号类型</td>
                            <td><select id="txtGHTtype" class="form-control"></select></td>
                        </tr>
                        <tr>
                            <td>预约时间</td>
                            <td><input id="Gh_Time" type="text" class="form-control"/></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input id="Button1" type="button" value="预约挂号" class="btn btn-success" style="width:200px;height:40px"  onclick="Gh()"/></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>

</body>
</html>
